<template>
  <div class="contain">
    <el-menu @select="$emit('changeComponent', $event)" default-active="content">
      <el-menu-item index="content">机型字典</el-menu-item>
      <el-menu-item index="content-one">固定设施</el-menu-item>
      <el-menu-item index="content-two">区域</el-menu-item>
    </el-menu>
  </div>
</template>

<script>
export default {
  name: 'left'
}
</script>

<style lang="scss" scoped>
.contain {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;

  .el-menu {
    border-right: none;
    margin: 10px 0;
    background-color: transparent;

    .el-menu-item {
      width: 122px;
      height: 60px;
      line-height: 20px;
      margin: 10px 0;
      border: 1px solid #19668D;
      color: white;
      padding: 25px;
      font-size: 20px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 5px;

      &:hover {
        background-color: transparent;
      }

      &.is-active {
        color: #E6A23C;
        box-shadow: inset 0 0 10px 5px #19668D;
        background-color: transparent;
      }
    }
  }

}
</style>
